import request from '../common/request.js'
//获取省份
export const login = (data) => {
	 return request({
	        url: `user/login`,
	        method: 'post',
	        data
	})
}

export const findUserByEnterprise = (data) => {
	 return request({
	        url: `user/findUserByEnterprise/${data.id}`,
	        method: 'get'
	})
}

export const findByUserId = (data) => {
	 return request({
	        url: `user/${data.id}`,
	        method: 'get'
	})
}
export const sendCode = (data) => {
	return request({
		url: `user/sendCode`,
		method: 'post',
		data
	})
}
reSetPassword
export const register = (data) => {
	return request({
		url: `user/register`,
		method: 'post',
		data
	})
}

export const reSetPassword = (data) => {
	return request({
		url: `user/reSetPassword`,
		method: 'post',
		data
	})
}
export const findByCandidateId = (data) => {
	return request({
		url: `user/findByCandidateId/${data.id}`,
		method: 'get'
	})
}